import request from '@/utils/request'

// 查询目标评估分页
export function pageTargetAssess(query) {
  return request({
    url: '/risk/target/assess/page',
    method: 'get',
    params: query,
    factoryId:true,
  })
}

// 查询目标评估列表
export function listTargetAssess(query) {
  return request({
    url: '/risk/targetAssess/list',
    method: 'get',
    params: query,
    factoryId:true
  })
}

// 查询目标评估详细
export function getTargetAssess(id) {
  return request({
    url: '/risk/feedback/info/' + id,
    method: 'get'
  })
}

// 新增目标评估
export function addTargetAssess(data) {
  return request({
    url: '/risk/targetAssess',
    method: 'post',
    data: data,
    factoryId:true,
  })
}

// 修改目标评估
export function updateTargetAssess(data) {
  return request({
    url: '/risk/targetAssess',
    method: 'put',
    data: data
  })
}

// 删除目标评估
export function delTargetAssess(data) {
  return request({
    url: '/risk/targetAssess/remove/batch',
    method: 'delete',
    data
  })
}

// 导出目标评估
export function exportTargetAssess(query) {
  return request({
    url: '/risk/targetAssess/export',
    method: 'get',
    params: query
  })
}

// 下载模板目标评估
export function downImportTemplate() {
  return request({
    url: '/risk/targetAssess/importTemplate',
    method: 'get'
  })
}
